@tailwind base;
@tailwind components;
@tailwind utilities;

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::-webkit-scrollbar-thumb {
  background-color: blue;
}

.scrollBar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.scrollBar::-webkit-scrollbar-track {
  background: #1e3a8a;
  border-radius: 5px;
}
.scrollBar::-webkit-scrollbar-thumb {
  border-radius: 5px;
  /*border: 1px solid grey;*/
  background-color: #ffffff;
}

@layer components {
  .timeline_tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    z-index: 2;
    padding: 10px;
    line-height: 1.3;
    white-space: nowrap;
    text-align: left;
    background: gray;
    color: white;
    transform: translateX(-50%) scale(0);
    pointer-events: none;
  }
  .timeline_tooltip::before {
    position: absolute;
    top: 100%;
    left: 50%;
    border-top: 6px solid greenyellow;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    transform: translateX(-50%);
    content: " ";
  }

  .timeline_marker {
    position: absolute;
    z-index: 2;
    top: 40px;
    bottom: 0;
    margin-left: -1px;
    border-left: 2px solid;
    opacity: 0;
    pointer-events: none;
    background-color: rgb(30 58 138);
  }

  .timeline_marker__visible {
    opacity: 1;
  }

  .timeline_marker__label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    display: table;
    min-width: 70px;
    height: 40px;
    padding: 0 10px;
    line-height: 1.1;
    text-align: center;
    background: rgb(30 58 138);
    transform: translateX(-50%);
    font-size: 16px;
    border-radius: 5px;
  }
  .timeline_marker__label::before {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    transform: translateX(-1px);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid currentColor;
    content: " ";
  }

  .timeline_marker__content {
    display: table-cell;
    vertical-align: middle;
    white-space: nowrap;
    color: white;
  }

  .timeline_grid {
    left: 0;
    right: 0;
  }
  .timeline_grid,
  .timeline_grid__cell {
    position: absolute;
    top: 0;
    bottom: 0;
  }
  .timeline_grid__cell {
    background: transparent;
    @apply border-l border-l-gray-300/20;
  }
  .timeline_cell__image {
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  }
}
